package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.CourseOrder;
import cn.itsource.ymcc.dto.KillDto;
import cn.itsource.ymcc.dto.OrderDto;
import cn.itsource.ymcc.dto.PayResultDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Eric Chen
 * @since 2022-07-22
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(OrderDto dto);
    void saveOrderAndItem(CourseOrder courseOrder);

    CourseOrder selectByOrderNo(String orderNo);

    void upDateState(PayResultDto payResultDto);

    void cancel(String s);

    String killPlaceOrder(KillDto dto);
}
